import java.util.Random;

public class App {
    public static void main(String[] args) throws Exception {
        Random r = new Random();
        Cat cat = new Cat();
        Dog dog = new Dog();
        Organism o1 = r.nextInt(2) == 1 ? cat : dog;//随机选择猫或狗
        Tool.information(o1);
        o1.action();
    }
}
